import {RouteRecordRaw} from 'vue-router'


const TagRoute:Array<RouteRecordRaw> = [
  {
    path:"/tag",
    name:"tagManage",
    meta:{
      name:"标签管理",
      icon:"el-icon-price-tag",
      permissions:"tagManage",
    },
    component:() => import(/* webpackChunkName: "Index" */ '@/views/layout/layout.vue'),
    redirect:"/tag/taglist",
    children:[
      {
        path:"/tag/taglist",
        name:"TagList",
        meta:{
          name:"标签列表",
          icon:"el-icon-wallet",
          permissions:"tagList"
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/tagManage/tagList/tagList.vue'),
      },
      {
        path:"/tag/roles",
        name:"Roles",
        meta:{
          name:"角色管理",
          icon:"el-icon-coordinate",
          permissions:"rolresManage"
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/tagManage/rolesList/rolesList.vue'),
      },
      {
        path:"/tag/plants",
        name:"Plants",
        meta:{
          name:"星球管理",
          icon:"el-icon-picture-outline-round",
          permissions:"plantsManage"
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/tagManage/plantList/plantList.vue'),
      },
    ]
  },
]

export default TagRoute;